<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<h3 class="sub-header">评论管理</h3>
<div class="table-responsive">
	<table class="table">
		<thead>
			<tr>
				<th>序号</th>
				<th>内容</th>
				<th>创建时间</th>
				<th>针对文章</th>
				<th>人</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${discussPage.list }" var="discuss"  varStatus="v" >
			<tr class="active">
				<td>${v.count }</td>
				 <td>${discuss.content}</td>
				<td>${discuss.createTime}</td>
				<td>${fn.substring(discuss.articleTitle,0,15)}</td>
				<td>${discuss.userName}</td>
				<td>
					<button type="button" class="btn btn-default btn-xs  btn-danger" onclick="${ctx}/blog/deleteDiscuss/${discuss.id}">删除</button>
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	<ul class="pagination">
		<li><a href="#">&laquo;</a></li>
		<li class="active"><a href="#">1</a></li>
		<li><a href="#">2</a></li>
		<li><a href="#">3</a></li>
		<li><a href="#">4</a></li>
		<li><a href="#">5</a></li>
		<li><a href="#">&raquo;</a></li>
	</ul> 

